<extend name="Public:common" />
<!--/sidebar-->
<block name="content">
<style type="text/css">
    p{
    width:700px;
    /*height:100px;*/
    text-indent:2em;
    line-height:150%;
    margin:5px 0 0;
}
p a{
    color:#FDCD3D;
}
</style>
    <div class="main-wrap">
        <div class="crumb-wrap">
            <div class="crumb-list"> <i class="icon-font"></i>
                <a href="__URL__">首页</a>
                <span class="crumb-step">&gt;</span>
                <span class="crumb-name">信息管理</span>
            </div>
        </div>
        <div class="result-wrap">

                <div class="result-title">
                    <div class="result-list">
                        <a href="__URL__/index/Action/backup"> <i class="icon-font"></i>
                            新增
                        </a>
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th>序号</th>
                            <th>文件名</th>
                            <th>备份时间</th>
                            <th>文件大小</th>
                            <th >操作</th>
                        </tr>


                        <notempty  name="lists">

                            <foreach name="lists" key="key" item="row">
                                <if condition="$key gt 1">
                                    <tr>
                                        <td><{$key-1}></td>
                                        <td style="text-align: left"><a href="<{:U('Bak/index',array('Action'=>'download','file'=>$row))}>"><{$row}></a></td>
                                        <td><{$row|getfiletime=$datadir}></td>
                                        <td><{$row|getfilesize=$datadir}></td>
                                        <td>
                                            <a href="<{:U('Bak/index',array('Action'=>'download','file'=>$row))}>">下载</a>
                                            <a onclick="return confirm('确定将数据库还原到当前备份吗？')"href="<{:U('Bak/index',array('Action'=>'RL','File'=>$row))}>">还原</a>
                                            <a onclick="return confirm('确定删除该备份文件吗？')"href="<{:U('Bak/index',array('Action'=>'Del','File'=>$row))}>">删除</a>
                                        </td>
                                    </tr>
                                </if>
                            </foreach>
                            <else/>
                            <tr>
                                <td colspan="7">没有找到相关数据。</td>
                            </tr>
                        </notempty>
                </table>
       <div class="list-page"><{$page}></div>
            </div>
    </div>
</div>
<script>
function del(id){
            //删除 商品 漂亮的提示信息
            $.MsgBox.Confirm("删除提示", "执行后将无法恢复，确定继续吗？温馨提示", function() { 
                //发送 当前商品的id 和当前用户帐号
                $.post("__URL__/delete",{'sid':id},function(data){
                     $.MsgBox.Alert("消息", data);
                    location.reload();
                });
            })
        }
function doblur(s,id){
    var yh = $.trim($(s).val()); 
         $.MsgBox.Confirm("修改提示", "确定继续吗？温馨提示", function() { 
        $.post('__URL__/sort', {type:id,val:yh}, function(data) {
            $.MsgBox.Alert("消息", data);
            location.reload();
            });
            })
        }


function sta(sid,sta){
     $.MsgBox.Confirm("修改提示", "确定继续吗？温馨提示", function() { 
            $.post('__URL__/status', {sid:sid,sta:sta}, function(data) {
                // alert(data);
                $.MsgBox.Alert("消息", data);
                location.reload();
                });
                })
        }
</script>






</block>